package com.cvte.shop.enums;

/**
 * @author DaiShubo
 * @version 1.0
 * @description 登陆枚举
 * @createTime 2020/7/28 5:41 下午
 * @since 1.7
 **/
public enum RestResponceEnum {

    LOGIN_SUCCESS("1","登陆成功"),
    UN_LOGIN("401","用户未登录,请先登录"),
    RESOURCE_FORBIDDEN("403","访问资源没有权限"),
    LOGIN_ERROR_ACCOUNT("500001","用户名或者密码错误"),
    REGISTER_ERROR("500002","账号或者密码为空"),
    INSERT_ERROR("500003","插入异常"),
    UPDATE_ERROR("500004","更新异常"),
    ARGUMENTS_ERROR("500005","更新异常");




    /**
     * 状态码
     */
    private String code;

    /**
     * 返回信息
     */
    private String message;

    RestResponceEnum(String code,String message){
        this.code = code;
        this.message = message;
    }

    public String getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }

}
